/*
 * INIT.h
 *
 *  Created on: 2016-5-11
 *      Author: Administrator
 */

#ifndef INIT_H_
#define INIT_H_


//#define			DEBUG				//Ҫ  .úָõԣ뽫úע


//IOں궨
#define			DIS_IO_SEG_1		P3LR7
#define			DIS_IO_SEG_2		P3LR6
#define			DIS_IO_SEG_3		P3LR5
#define			DIS_IO_SEG_4		P3LR4
#define			DIS_IO_SEG_5		P3LR3
#define			DIS_IO_SEG_6		P3LR2
#define			DIS_IO_SEG_7		P3LR1
#define			DIS_IO_SEG_8		P3LR0

#define			SWITCH_KEY			P13			//л
#define			CHANGE_KEY			P26			//޸İ




//IOں궨





#define			OSCCTL_16M			0b01110000		// CLKOE=0ʱ        IRCS[2-0]=111 1:1Ƶ     SCS1[1,0]=00ѡڲʱ  IESO=0 ֹ˫ FSCM=0 ֹϼ

#ifdef			DEBUG
#define			TR0_INIT			0b00000111
#else
#define			TR0_INIT			0b00000100
#endif

#define			TR1_INIT			0b00001000
#define			TR2_INIT			0b01000000
#define			TR3_INIT			0b00000000

#define			P0LR_INIT			0b00000000
#define			P1LR_INIT			0b00000000
#define			P2LR_INIT			0b00000000
#define			P3LR_INIT			0b00000000



#endif /* INIT_H_ */
